home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / CPTUTS22.ARJ / FLYAWAY.CPP < prev    next >
C/C++ Source or Header  |  1992-01-20  |  1KB  |  37 lines

  1. //       XXXXX  X      X   X    X    X   X    X    X   X
  2. //       X      X      X   X   X X   X   X   X X   X   X
  3. //       X      X       X X   X   X  X   X  X   X   X X
  4. //       XXX    X        X    X   X  X   X  X   X    X
  5. //       X      X        X    XXXXX  X X X  XXXXX    X
  6. //       X      X        X    X   X  X X X  X   X    X
  7. //       X      XXXXX    X    X   X   X X   X   X    X
  8.  
  9. //                    FLYAWAY - version 2.20
  10. //          Written by: Gordon Dodrill - Jan 20, 1992
  11. //      Copywrite 1989, 1990, 1992 - Coronado Enterprises
  12.  
  13. #include <stdio.h>
  14. #include "words.h"
  15. #include "map.h"
  16. #include "schedule.h"
  17. #include "clock.h"
  18. #include "items.h"
  19.  
  20. words    input_words;      // The player's command inputs
  21. map      airport;          // The physical layout of the airport
  22. schedule flight_info;      // Schedule and gate information
  23. clock    time_of_day;      // The system timekeeper
  24. items    personal_items;   // Things the player carries with him
  25.  
  26. main()
  27. {
  28.    airport.initialize();
  29.    do {
  30.       input_words.get_command();        // Get user inputs
  31.       flight_info.shuffle_flights();    // Until monitor read
  32.       flight_info.shuffle_gates();      // Until ticket read
  33.       airport.perform_action();         // Try to perform the request
  34.       flight_info.check_flight();       // Did you get there?
  35.    } while (input_words.get_verb() != quit);
  36. }
  37.